{extend name="AdminPublic/public"}
{block name="admin"}
<div class="row"> 
   <div class="col-lg-12"> 
    <section class="panel"> 
     <header class="panel-heading"> 
      <span style="font-size:20px;">您的位置 :</span> 
      <span style="color:#65CEA7;">轮播图管理 > 轮播图列表</span> 
      <span class="tools pull-right"> <a href="javascript:;" class="fa fa-chevron-down"></a> <a href="javascript:;" class="fa fa-times"></a> </span> 
     </header> 
     <div class="panel-body"> 
<!-- 搜索开始 --> 
      <!-- <div id="editable-sample_wrapper" class="dataTables_wrapper form-inline" role="grid">
       <div class="row">
        <div class="col-lg-6">
         <div id="editable-sample_length" class="dataTables_length">
          <label><select size="1" name="editable-sample_length" aria-controls="editable-sample" class="form-control xsmall"><option value="5" selected="selected">5</option><option value="15">15</option><option value="20">20</option><option value="-1">All</option></select> records per page</label>
         </div>
        </div>
        <div class="col-lg-6">
         <div class="dataTables_filter" id="editable-sample_filter">
          <label>Search: <input type="text" aria-controls="editable-sample" class="form-control medium" /></label>
         </div>
        </div>
       </div>
       <table class="table table-striped table-hover table-bordered dataTable" id="editable-sample" aria-describedby="editable-sample_info">  -->
<!-- 搜索结束 --> 

<!-- 不加搜索版开始 --> 
        <div id="editable-sample_wrapper" class="dataTables_wrapper form-inline" role="grid">
       <div class="row">
        <div class="col-lg-6">
         <div id="editable-sample_length" class="dataTables_length"></div>
        </div>
       </div> 
       <table class="table table-striped table-hover table-bordered dataTable" id="editable-sample" aria-describedby="editable-sample_info"> 
<!-- 不加搜索版结束  --> 
        <thead> 
         <tr role="row"> 
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Last Name: activate to sort column ascending" style="text-align:center;width: 100px;">ID</th> 
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Edit: activate to sort column ascending" style="text-align:center;width:264px;">轮播图图片</th> 
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Edit: activate to sort column ascending" style="text-align:center;width:100px;">轮播图状态</th>
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Delete: activate to sort column ascending" style="text-align:center;width: 112px;">操作</th> 
         </tr> 
        </thead> 
        <tbody role="alert" aria-live="polite" aria-relevant="all"> 
        {foreach name="carousel" item="row"}
         <tr class="even"> 
          <td class=" ">{$row['id']}</td> 
          <td class=" "><img src="\uploads\{$row['pic']}" alt="" style="width:500px;height:250px;"></td> 
          <td class=" ">
          {if condition="$row['status']==0"}<a href="/admincarousel/display/status/1/id/{$row['id']}">显示</a>{else/}<a href="/admincarousel/display/status/0/id/{$row['id']}">隐藏</a>{/if}</td> 
          <td class=" " style="text-align:center;"> <a class="label label-danger label-mini" href="/admincarousel/delete/id/{$row['id']}">删除</a> <a class="label label-primary label-mini" href="/admincarousel/edit/id/{$row['id']}">编辑</a> 
          </td>
         </tr>
     {/foreach}
        </tbody> 
       </table> 
<!-- 分页开始 --> 
      <!--  <div class="row">
        <div class="col-lg-6"></div>
        <div class="col-lg-6">
         <div class="dataTables_paginate paging_bootstrap pagination">
          <ul>
           <li class="prev disabled"><a href="#">← Prev</a></li>
           <li class="active"><a href="#">1</a></li>
           <li><a href="#">2</a></li>
           <li><a href="#">3</a></li>
           <li><a href="#">4</a></li>
           <li><a href="#">5</a></li>
           <li class="next"><a href="#">Next → </a></li>
          </ul>
         </div>
        </div>
       </div>
      </div>  -->
<!-- 分页结束 --> 
     </div> 
    </section>
   </div>  
  </div> 
{/block}